package day2Test2;

import java.io.Serializable;
import java.util.ArrayList;

//图书 属性
public class Book implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6060343040263809614L;
	private int id; // 编号
	private String name; // 书名
	private ArrayList<String> record; // 借阅记录
	private int num;// 借阅次数
	private int repertory = 0; // 库存

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ArrayList<String> getRecord() {
		return record;
	}

	public void setRecord(ArrayList<String> record) {
		this.record = record;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getRepertory() {
		return repertory;
	}

	public void setRepertory(int repertory) {
		this.repertory = repertory;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", record=" + record + ", num=" + num + ", repertory=" + repertory
				+ "]";
	}

	public Book() {
		super();
		this.id = id;
		this.name = name;
		this.record = record;
		this.num = num;
		this.repertory = repertory;
	}

	public Book(int id, String name, ArrayList<String> record, int num, int repertory) {
		super();
		this.id = id;
		this.name = name;
		this.record = record;
		this.num = num;
		this.repertory = repertory;
	}

}
